def isincluded(arg, list):
	out = False
	ind = 0
	while (ind<len(list)) and (not out):
		if list[ind] == arg:
			out = True
		ind += 1
	return out

def unique(list):
	outputlist = []
	for i in range(len(list)):
		if not isincluded(list[i], outputlist):
			outputlist.append(eval(repr(list[i])))

	return outputlist

def finditems (arg,list): #returns a list of indexes of the locations of arg in list
	outputlist = []
	ind = 0
	for i in range(len(list)):
		if list[i] == arg:
			outputlist.append(i)
	return outputlist		
